package cn.stylefeng.guns.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会计科目表
 * </p>
 *
 * @author gyz
 * @since 2020-11-02
 */
@Data
@TableName("bty_cw_kjkm")
public class CwKjkm implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "bty_cw_kjkm_id", type = IdType.ID_WORKER)
    private Long btyCwKjkmId;

    @TableField("code")
    private String code;

    @TableField("name")
    private String name;

    @TableField("level")
    private String level;

    @TableField("pid")
    private Long pid;
    /**
     * 父级ids
     */
    @TableField("pids")
    private String pids;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 状态显示
     */
    @TableField("status_view")
    private String statusView;

    @TableField("del_flag")
    private Integer delFlag;

    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @TableField("create_user_view")
    private String createUserView;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @TableField("update_user_view")
    private String updateUserView;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 所属组织
     */
    @TableField("company")
    private String company;

    /**
     * 组织显示
     */
    @TableField("company_view")
    private String companyView;

    /**
     * 上级单据
     */
    @TableField("src_type")
    private String srcType;

    /**
     * 上级单据值
     */
    @TableField("src_value")
    private String srcValue;


    /**
     * 父级名称
     */
    @TableField(exist = false)
    private String pName;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    @TableField("remark")
    private String remark;

    @TableField("zjm")
    private String zjm;

}
